<?php declare(strict_types=1);


namespace App\Rpc\Service;


use App\Rpc\Lib\PayInterface;
use Swoft\Co;
use Swoft\Rpc\Server\Annotation\Mapping\Service;

/**
 * Class PayService
 *
 * @since 2.0
 *
 * @Service()
 */
class PayService implements PayInterface
{
    /**
     * @param int $id
     * @param mixed $type
     * @param int $count
     *
     * @return array
     */
    public function getList(int $id, $type, int $count = 10): array
    {
        return ['name' => ['pay']];
    }

    /**
     * @param int $id
     *
     * @return bool
     */
    public function delete(int $id): bool
    {
        return false;
    }

    /**
     * @return string
     */
    public function getBigContent(): string
    {
        $content = Co::readFile(__DIR__ . '/big.data');
        return $content;
    }
}